package com.example.demo.configuration;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;


@SpringBootConfiguration
public class TokenConfiguration extends WebMvcConfigurerAdapter {

    @Autowired
    SysInterceptor sysInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        // 检查指定的请求是否登录
//        registry.addInterceptor(sysInterceptor).addPathPatterns("/count/**");
    }
}
